$(function() {
			//var fpid = getParameter("8-1.js", "fpid");
			var id = getParameter("8-1.js", "id");

			new $.grooveViewPreII({
						id : id,
						primaryTable : "loanapply"
					}, "view-loan-apply", {
						formID : "formID",
						beforecall : function() {

						},
						aftercall : function() {

						},
						rendercall : function(selfFunc, validator, validators,
								data, resultData) {
							if ($("#LA_STATUS").val() == -1) {
								$("#LA_STATUS").val("审核未通过");
							} else if ($("#LA_STATUS").val() == 0) {
								$("#LA_STATUS").val("待审核");
							} else if ($("#LA_STATUS").val() == 1) {
								$("#LA_STATUS").val("审核通过");
							} else if ($("#LA_STATUS").val() == 2) {
								$("#LA_STATUS").val("合同已生成");
							}

							new $.grooveViewPreII({
										id : resultData.LA_LOANPRODUCTID,
										primaryTable : "financialProduct"
									}, "viewcreditproduct", {
										formID : "formView",
										beforecall : function() {

										},
										aftercall : function() {

										},
										rendercall : function(selfFunc,
												validator, validators, data) {

										}
									});

							new $.grooveViewPreII({
										id : resultData.LA_INDENID,
										primaryTable : "fcindent",
										foreignTables : [{
													foreignTable : "fcindentlist",
													listid : "fcorderlist"
												}]
									}, "viewfcorder", {
										formID : "formIndentView",
										beforecall : function() {

										},
										aftercall : function() {

										},
										rendercall : function(selfFunc,
												validator, validators, data) {

										}
									});
						}
					});

			$("#pageloading").hide();
		});